package org.example.curriculum_design_6_16.service;

import org.example.curriculum_design_6_16.entity.pojo.PoliticalPerformance;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.curriculum_design_6_16.mapper.PoliticalPerformanceMapper;

/**
* @author 郑凯
* @description 针对表【political_performance】的数据库操作Service
* @createDate 2025-06-16 09:25:48
*/
public interface PoliticalPerformanceService extends IService<PoliticalPerformance> {
    public PoliticalPerformance selectByStudentId(String studentId);
    
    /**
     * 根据学生ID和学年查询思政成绩
     * @param studentId 学生ID
     * @param academicYear 学年
     * @return 思政成绩记录
     */
    public PoliticalPerformance selectByStudentId(String studentId, String academicYear);
    
    public PoliticalPerformance getAllPoliticalPerformance();
    public int deleteByStudentId(String studentId);
    public int updateScore(String studentId, double newScore);
    public boolean isBaseScoreZeroInSemester(String studentId);
}
